package com.wnxy.sddfp.api.bank;

import com.wnxy.sddfp.api.bank.fallback.TradeLogApiFallBack;
import com.wnxy.sddfp.common.model.dto.bank.BankCardAddDTO;
import com.wnxy.sddfp.common.model.dto.bank.SignatureDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(
        value = "sddfp-bank-access-service",  //调用那个那微服务
        fallback = TradeLogApiFallBack.class  //服务失败的 降级方法
)
public interface TradeLogApi {
    @PostMapping("/trade-log/bank/access/card")
    public SignatureDto proxyBindCardLog(@RequestBody BankCardAddDTO bankCardAddDTO);
}